package com.foreknow.demo;

public class PersonImpl extends Person{
    @Override
    public boolean Login(String username, String password) {

        return true;
    }

    @Override
    public boolean insert(String username, String password) {
        return false;
    }

    @Override
    public Person getPersonById(String id) {
        return null;
    }

    @Override
    public Person[] getAll() {
        return new Person[0];
    }

    @Override
    public int deleteById(String id) {
        return 0;

    }

    public static void main(String[] args) {
        Person person = new PersonImpl();
        boolean isRight = person.Login("tom","123456");
        if(isRight){
            System.out.println("登陆成功");
        }else{
            System.out.println("登陆失败");
        }
        int i = person.deleteById("100");
        if(i==1){
            System.out.println("删除成功");
        }else{
            System.out.println("删除失败");
        }
    }
}
